xenpm: Fix reporting of C0 residence times
authorBoris Ostrovsky <boris.ostrovsky@amd.com>
Wed, 30 May 2012 08:26:02 +0000 (09:26 +0100)
committerBoris Ostrovsky <boris.ostrovsky@amd.com>
Wed, 30 May 2012 08:26:02 +0000 (09:26 +0100)
commitde0e85188ca9e240e774f4598139ba92ee5ce4f8
tree473eb83d01440251f193f9514de95a14b6e4b724
parent4af64160c580b02f28c992c09d55957cb20a9b91
xenpm: Fix reporting of C0 residence times

Idle state residence times as provided by pmstat_get_cx_stat() are not
reported precisely since remote core may be in idle state and
therefore has not updated its statistics at the time local core
collected them.  This causes C0 residencies as calculated by xenpm to
sometimes become negative.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@amd.com>
Committed-by: Keir Fraser <keir@xen.org>
tools/misc/xenpm.c